#ifndef NOTEITEM_H
#define NOTEITEM_H

#include <QWidget>
#include <QListWidgetItem>
#include <QMouseEvent>
#include "alarmsetting.h"
#include <QFont>

namespace Ui {
class NoteItem;
}

class NoteItem : public QWidget
{
    Q_OBJECT

public:
    explicit NoteItem(QListWidgetItem *pItem, QWidget *parent = 0);
    NoteItem(QListWidgetItem *pItem, QString t_Month, QString t_Day, QString t_Week, QString t_MettingTime, QString t_MettingAddr, QString t_EventContent,QWidget *parent = 0);

    ~NoteItem();
signals:
    void NoteItemDelSignal(QListWidgetItem *m_pItem);
    void AlarmSettingEnterSignals(int calendarMonth, int calendarDay, int calendarWeek, QString MettingTime, QString MettingAddr, QString EventContent);
    void AlarmSettingPushSignals(QListWidgetItem *m_pItem);
private slots:
    void on_DelPushButton_clicked(void);

    void on_AlarmPushButton_clicked();

    void AlarmSettingSlot(int,int,int,QString,QString,QString);

    void on_NoteItemRadioButton_clicked(bool checked);

private:
    Ui::NoteItem *ui;
    QListWidgetItem *m_pItem;
    AlarmSetting *m_pAlarm;//闹铃

public:
    int Month;
    int Day;
    int Week;

    QString MettingTime; //会议时间
    QString MettingAddr; //会议地点
    QString EventContent;//事件内容
};

#endif // NOTEITEM_H
